package cn.luow.mail.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties("magic-api.mail")
@Component
@Data
public class MailConfig {
    @Value("${spring.mail.username}")
    private String from;
    private String to;
    private String defaultFtl="default";
    private String logFtl="error-mail";
    private String keyword="logMail";
    private String webName;
    private String webUrl;
    private Integer duration=5;
}
